package com.zzw.until;

import com.alibaba.fastjson.JSONObject;
import java.util.List;

public class FastJsonUntil {

    public static String listToJson(List list){
        String result = JSONObject.toJSONString(list);
        return result;
    }

    public static List jsonToList(String str){
        List list = (List) JSONObject.parseArray(str,Integer.class);
        return list;
    }
}
